python slice string by character

welcome to shbcf.ru